#include "plane.h"
#include "config.h"
plane::plane()
{
    m_plane.load(":/picture/images/me2.png");
    m_x=(GAME_WIDTH-m_plane.width())*0.5;
    m_y=GAME_HEIGHT-m_plane.height();
    m_Rect.setWidth(m_plane.width());
    m_Rect.setHeight(m_plane.height());
    m_Rect.moveTo(m_x,m_y);
}

void plane::setPosition(int x, int y)
{
    m_x=x;
    m_y=y;
    m_Rect.moveTo(m_x,m_y);
}
